
	
			var fyKinds = "";
			var fyGq =  "";
			var keyWord =  "";
		//标题
		$("#title").html("我发布的房源");
		//加载数据
		$(function() {
			var fyKinds = $("#fyKinds").val();
			var fyGq = $("#fyGq").val();
			var keyWord = $("#keyWord").val();
			MTools.autoFullSelect();
			var pageSize = $("#limit").val();
			Pagination
					.init({
						url : basePath+"/customer/fy/findMyFy",
						pageSize : pageSize,
						builderDate : function(loj) {
							if (loj.getRowCount() <= 0) {
								$("#addhas").hide();
								$("#addno").show();
								return;
							} else {
								$("#addhas").show();
								$("#addno").hide();
							}
							var html = buidData(loj);
							$("#data").append(html);
						}
					});
			addData();
		})
		var pageNow =0;
		function addData() {
			pageNow++;
			Pagination.changePage(pageNow);
		}
		
		
		
function buidData(loj){
	var html="";
	for (var i = 0; i < loj.getRowCount(); i++) {
		var top="";
		if(loj.getString(i,"glIsTop")=='是'){
			top='<img src="'+basePath+'/resource/images/d.png" />';
		}
		html += '<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">'+
		'<div class=" am-u-sm-12 am-list-main">'+
			'<h3 class="am-list-item-hd">'+
			'<a href="'+basePath+'/index/queryFyMsg?id='+loj.getString(i,"id")+'" class="color-3 font-w6">'+loj.getString(i,"fyTitle")+'</a>'+top+
			'</h3>'+
			'<div class="am-list-item-text color-9">'
			+'发布日期：'+loj.getDate(i,"glCreateTime")
			+'</div>'+
		'	<div class="float-r">'+
		'		<span onclick="flushFyTiem('+loj.getString(i,"id")+')" class=" am-badge am-badge-warning">刷新排名</span>'+
		'		<span class="time color-9">审核状态:'+loj.getString(i,"glCheckStatus")+'</span>'+
		'	</div>'+
		'	</div>'+
		'	</li>';
	}
	return html;
}
		
function flushFyTiem(id){
	$.AjaxProxy({c:false,p:{id:id}}).invoke(basePath+"/customer/fy/flushFyTime",function(loj){
		layer.open({
		    time: 2,
		    skin:'msg',
		    content:loj.getValue("info"),
		  });
	
	});
}
function changeSelect2() {
	$("#data").html("");
	 pageNow = 1;
	Pagination.changePage(pageNow);
}
function changeSelect(node) {
	var nvalue = $(node).val();
	if (nvalue == '') {
		return;
	}
	var bs="<option value=''>供求类型</option>";
	var cz = "<option value='出租' >出租</option>";
	var qz = "<option value='求租' >求租</option>";
	var cs = "<option value='出售' >出售</option>";
	var qg = "<option value='求购' >求购</option>";
	var zr = "<option value='转让' >转让</option>";
	var html = '';
	if (nvalue == '二手房') {
		html = bs+cs + qg;
	} else if (nvalue == '写字楼') {
		html =bs+ cs + cz + qz + qg;
	} else if (nvalue == '出租房') {
		html = bs+cz + qz;
	} else if (nvalue == '商铺') {
		html =bs+ cz + qz + cs + qg + zr;
	} else if (nvalue == '厂房') {
		html =bs+ cz + qz + cs + qg + zr;
	}
	$("#data").html("");
	$("#fyGq").html(html);
	Pagination.serchDate();
}

